package com.xhq.wms.service.system.impl;



import com.xhq.wms.dao.system.UserDao;
import com.xhq.wms.dao.system.impl.UserDaoImpl;

import com.xhq.wms.entity.system.User;
import com.xhq.wms.service.system.LoginService;


public class LoginServiceImpl  implements LoginService {

    private UserDao userDao = new UserDaoImpl();
    /**
     * 根据用户名和密码 查询
     * @param userName
     * @param password
     * @return
     */
    public  User  login(String userName, String password)   {
        User user = userDao.findForLogin(userName, password);
        return user;
    }

}
